<?php
	if(!isset($_REQUEST['ajax'])){ $_REQUEST['ajax'] = "";}
	if($_REQUEST['ajax']!=true) include 'header.tpl.php';
?>
	<div class="row">
		<div class="col-lg-12">
			<ul class="shortcut-buttons-set">
				<li>
					<a class="shortcut-button" href='#request_list'><span>
					<img src="resources/images/icons/panel/project_process.png" alt="icon" width="48px" height="48px" /><br />
					<?php echo $this->language['list'];?></span></a>
				</li>
				<li>
					<a class="shortcut-button" href='#request_list/status=0'><span>
					<img src="resources/images/icons/panel/project_wait.png" alt="icon" width="48px" height="48px" /><br />
					<?php echo $this->language['waiting'];?></span></a>
				</li>
				<li>
					<a class="shortcut-button" href='#request_create' ><span>
					<img src="resources/images/icons/panel/project_new.png" alt="icon" width="48px" height="48px" /><br />
					<?php echo $this->language['request_create'];?></span></a>
				</li>
				<li>
					<a class="shortcut-button" href='#cost_list'><span>
					<i class="icon-share"></i><br />
					Chi phí</span></a>
				</li>
				<li>
					<a class="shortcut-button" href='#request_list/type=CKLED'><span>
					<i class="icon-share"></i><br />
					Chiết khấu LED</span></a>
				</li>
				<?php if(check_permission('request_view')): ?>
				<li>
					<a class="shortcut-button" href='#request_report'><span>
					<i class="icon-file-text-alt"></i><br />
					Xem báo cáo</span></a>
				</li>
				<?php endif;?>
			</ul>
		</div>
	</div>
	<div class="row">
		<div class="col-lg-12">
			<div class="panel">
				<div class="panel-heading">
					<div class="panel-title"><i class="icon-file-text-alt"></i> Chi phí</div>
				</div>
				<div class="panel-body">
					<div id="printable">
						<div class="receipt" >
							<div class="row">
								<div class="col-lg-12 text-center">
									<b>Công ty TNHH MTV Ứng Dụng Công Nghệ & Dịch Vụ Truyền Thông Âu Lạc</b><br>
									17 Đông Sơn, Phường 7, Quận Tân Bình, TP.Hồ Chí Minh
								</div>
							</div>
							<div class="row">
								<div class="col-lg-12 text-center">
									<h3>GIẤY ĐỀ NGHỊ CHI PHÍ ĐỐI TÁC</h3>
								</div>
							</div>
							<div class="row">
								<div class="col-lg-offset-1 col-lg-3 text-right">
									<b>Người đứng tên :</b>
								</div>
								<div class="col-lg-8">
									<font color=red><?php echo $this->cost['uFullname'];?></font>
								</div>
							</div>
							<div class="row">
								<div class="col-lg-offset-1 col-lg-3 text-right">
									<b>Phòng ban :</b>
								</div>
								<div class="col-lg-8">
									<font color=red><?php echo $this->cost['rName'];?></font>
								</div>
							</div>
							<div class="row">
								<div class="col-lg-offset-1 col-lg-3 text-right">
									<b>Số tiền :</b>
								</div>
								<div class="col-lg-8">
									<font color=red><?php echo number_format($this->cost['cost_total'],0,"",",");?> VNĐ</font>
								</div>
							</div>
							<div class="row">
								<div class="col-lg-offset-1 col-lg-3 text-right">
									<b>Lý do :</b>
								</div>
								<div class="col-lg-8">
									<font color=red><?php echo nl2br(strip_tags($this->cost['cost_reason']));?></font>
								</div>
							</div>
							<div class="row">
								<div class="col-lg-offset-1 col-lg-3 text-right">
									<b>Dự án :</b>
								</div>
								<div class="col-lg-8">
									<font color=red><a href="#project_view/pid=<?php echo $this->cost['pId'];?>"><?php echo $this->cost['pName'];?></a></font>
								</div>
							</div>
							<div class="row">
								<div class="col-lg-offset-8 col-lg-4">
									Ngày <font color=red><?php echo date("d",$this->cost['cost_create_date']);?></font> Tháng <font color=red><?php echo date("m",$this->cost['cost_create_date']);?></font> Năm <font color=red><?php echo date("Y",$this->cost['cost_create_date']);?></font>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
<?php if(isset($this->breadcrumb) && isset($this->title_header)):?>
	<script type="text/javascript">
		$(function() {
			$("#title-header").text('<?php echo $this->title_header;?>');
			$("#breadcrumb").html('<?php echo build_breadcrumb($this->breadcrumb);?>');
		});
	</script>
<?php endif;?>
<?php
	if($_REQUEST['ajax']!=true) include 'footer.tpl.php';
?>